<?php /* Smarty version 2.6.18, created on 2009-05-06 14:22:59
         compiled from ua-admin/member_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'ua-admin/member_edit.html', 24, false),array('modifier', 'date_format', 'ua-admin/member_edit.html', 50, false),array('modifier', 'default', 'ua-admin/member_edit.html', 50, false),array('function', 'html_options', 'ua-admin/member_edit.html', 59, false),array('function', 'html_radios', 'ua-admin/member_edit.html', 64, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide"><tr>
  <td><div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo; 会员库</div></td>
</tr></table>
	<form action="./member.php?action=mod" method="post" enctype="multipart/form-data" name="memberfrm">
	<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
" />
        <table width="100%"  border="0" cellpadding="5" cellspacing="1" class="tableborder">
		<tr class="header">
		  <td colspan="6">基本信息</td>
		</tr>
          <tr>
            <td align="center" class="altbg1"><font color=red>* </font>用户名
            <td class="altbg2"><?php if ($_GET['id']): ?>
                <?php echo ((is_array($_tmp=$this->_tpl_vars['m']['MemberUsername'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>

              <?php else: ?>
              <input type="text" name="member[username]" value="" />
              <?php endif; ?></td>
            <td class="altbg2">密码</td>
            <td colspan="2" class="altbg2"><input type="password" name="member[userpass]" value="" />
              （如果不想修改，请保持为空）</td>
          </tr>
          <tr>
            <td class="altbg1" align="center">姓                    
            <td colspan="4" class="altbg2"><input name=member[firstname] type=text id="member[firstname]" value="<?php echo $this->_tpl_vars['m']['MemberFirstname']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">名                    
            <td colspan="4" class="altbg2"><input name=member[lastname] type=text id="member[lastname]" value="<?php echo $this->_tpl_vars['m']['MemberLastname']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 查询密码问题
            <td colspan="4" class="altbg2"><input name=member[question] type=text id="member[question]" value="<?php echo $this->_tpl_vars['m']['MemberQuestion']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 查询密码答案 
            <td colspan="4" class="altbg2"><input name=member[answer] type=text id="member[answer]" value="<?php echo $this->_tpl_vars['m']['MemberAnswer']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">服务开始日期
            <td class="altbg2"><input type="text" name="ServiceFromDate" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['m']['MemberServiceStartDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date1" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date1"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
            <td colspan="2" class="altbg2">服务结束日期</td>
            <td class="altbg2"><input type="text" name="ServiceEndDate" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['m']['MemberServiceEndDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date2" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date2"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">职位
            <td colspan="4" class="altbg2"><select name="member[position]">
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['WorkPosition'],'selected' => $this->_tpl_vars['m']['MemberPosition']), $this);?>

                              </select>                            </td>
          </tr>
          <tr>
            <td class="altbg1" align="center">性别
            <td colspan="4" class="altbg2"><?php echo smarty_function_html_radios(array('name' => "member[gender]",'options' => $this->_tpl_vars['Genders'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['m']['MemberGender'])) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1')),'separator' => ' '), $this);?>
</td>
          </tr>
		<tr class="header">
		  <td colspan="6">联系方式</td>
		</tr>
          <tr>
            <td class="altbg1" align="center">联系电话
            <td colspan="4" class="altbg2"><input name="member[tel]" type="text" id="member[tel]" value="<?php echo $this->_tpl_vars['m']['MemberTel']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 传真 
            <td colspan="4" class="altbg2"><input name="member[fax]" type="text" id="member[fax]" value="<?php echo $this->_tpl_vars['m']['MemberFax']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 手机 
            <td colspan="4" class="altbg2"><input name="member[mobile]" type="text" id="member[mobile]" value="<?php echo $this->_tpl_vars['m']['MemberMobile']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> QQ
            <td colspan="4" class="altbg2"><input name="member[qq]" type="text" id="member[qq]" value="<?php echo $this->_tpl_vars['m']['MemberQq']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> MSN
            <td colspan="4" class="altbg2"><input name="member[msn]" type="text" id="member[msn]" value="<?php echo $this->_tpl_vars['m']['MemberMsn']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> Yahoo
            <td colspan="4" class="altbg2"><input name="member[yahoo]" type="text" id="member[yahoo]" value="<?php echo $this->_tpl_vars['m']['MemberYahoo']; ?>
"></td>
          </tr>
          <tr>
            <td align="center" valign="top" class="altbg1"> OICQ
            <td colspan="4" class="altbg2"><input name="member[icq]" type="text" id="member[icq]" value="<?php echo $this->_tpl_vars['m']['MemberIcq']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">所在地区
            <td colspan="4" class="altbg2"><select name="countryid" id="countryid" USEDATA="dataSrc2" SUBCLASS="1">
                        </select><select name="provinceid" id="provinceid" USEDATA="dataSrc2" SUBCLASS="2">
                        </select><select name="cityid" id="cityid" USEDATA="dataSrc2" SUBCLASS="3">
                        </select>当前地区：<?php echo $this->_tpl_vars['m']['ProvinceName']; ?>
-<?php echo $this->_tpl_vars['m']['CityName']; ?>
，如果不修改，请不要选择。</td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 详细地址
            <td colspan="4" class="altbg2"><input name="member[address]" type="text" id="member[address]" value="<?php echo $this->_tpl_vars['m']['MemberAddress']; ?>
" size="35"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 邮编
            <td colspan="4" class="altbg2"><input name="member[zipcode]" type="text" id="member[zipcode]" value="<?php echo $this->_tpl_vars['m']['MemberZipcode']; ?>
"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">Email
            <td colspan="4" bgcolor=#F7F7F7 border=1 ><input name="member[email]" type="text" id="member[email]" value="<?php echo $this->_tpl_vars['m']['MemberEmail']; ?>
"></td>
          </tr>
		<tr class="header">
		  <td colspan="6">会员积分</td>
		</tr>
          <tr>
            <td class="altbg1" align="center">企业信用等级
            <td colspan="4" class="altbg2"><input name=member[credit_level] type=text id="member[credit_level]" value="<?php echo $this->_tpl_vars['m']['MemberCreditLevel']; ?>
">
            (评价对应企业的活跃度)</td>
          </tr>
          <tr>
            <td class="altbg1" align="center">用户信用等级          
            <td colspan="4" class="altbg2"><input name=member[rank] type=text id="member[rank]" value="<?php echo $this->_tpl_vars['m']['MemberRank']; ?>
">
              (评价会员的活跃度)</td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 审核状态
            <td colspan="4" class="altbg2"><?php echo smarty_function_html_radios(array('name' => "member[status]",'options' => $this->_tpl_vars['MemberStatus'],'checked' => $this->_tpl_vars['m']['MemberStatus'],'separator' => ' '), $this);?>
</td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 用户类型 
            <td colspan="4" class="altbg2"><select name="member[user_level]">
                                <option value="1" <?php if ($this->_tpl_vars['m']['MemberUserLevel'] == 1): ?>selected<?php endif; ?>>个人会员</option>
                                <option value="2" <?php if ($this->_tpl_vars['m']['MemberUserLevel'] == 2): ?>selected<?php endif; ?>>企业会员</option>
                            </select></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 会员类型 
            <td colspan="4" class="altbg2"><select name="member[user_type]">
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['UserTypes'],'selected' => $this->_tpl_vars['m']['MemberUserType']), $this);?>

                            </select></td>
          </tr>
          <tr>
            <td class="altbg1" align="center"> 金钱点数
            <td class="altbg2"><input name=member[credit_point] type=text id="member_credit_point" value="<?php echo $this->_tpl_vars['m']['MemberCreditPoint']; ?>
"></td>
            <td colspan="2" class="altbg2"></td>
            <td class="altbg2"></td>
          </tr>
          <tr>
            <td class="altbg1" align="center">最后一次登陆时间
            <td colspan="4" class="altbg2"><?php echo ((is_array($_tmp=$this->_tpl_vars['m']['MemberLastLogin'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
          </tr>
          <tr>
            <td class="altbg1" align="center">今天登陆次数
            <td colspan="4" class="altbg2"><?php echo $this->_tpl_vars['m']['MemberTodayLogins']; ?>
</td>
          </tr>
          <tr>
            <td class="altbg1" align="center">加入日期
            <td colspan="4" class="altbg2"><?php echo ((is_array($_tmp=$this->_tpl_vars['m']['MemberCreated'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
          </tr>
          <tr class="altbg1">
            <td colspan="5" align="center"><table border="0" cellpadding="5" cellspacing="0" class="button">
                <tr>
                  <td><input  name="check_in" type=submit id="check_in" value=" 审核通过 " class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                  <td><input  name="check_out" type=submit id="check_out" value=" 审核不通过 " class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                  <td><input  name="save" type=submit id="save" value=" 保存 " class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                </tr>
          </table>          </tr>
        </table>
      </form></td></tr></table>
<br /><br />
</body>
</html>
<script language="javascript">
var linkage2 = new Linkage("dataSrc2", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/area.xml");
linkage2.BLANK_SELECT = "请选择";
linkage2.init();
</script>
